Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update webpack (major) #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update webpack (major) #78

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Dec 26, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
copy-webpack-plugin ^11.0.0 -> ^12.0.0 age adoption passing confidence
css-loader ^6.0.0 -> ^7.0.0 age adoption passing confidence
html-loader ^4.0.0 -> ^5.0.0 age adoption passing confidence
style-loader ^3.0.0 -> ^4.0.0 age adoption passing confidence
webpack-build-notifier ^2.1.0 -> ^3.0.0 age adoption passing confidence
webpack-dev-middleware ^6.0.0 -> ^7.0.0 age adoption passing confidence
webpack-dev-server ^4.0.0 -> ^5.0.0 age adoption passing confidence

Release Notes

webpack-contrib/copy-webpack-plugin (copy-webpack-plugin)

v12.0.2

Compare Source

v12.0.1

Compare Source

v12.0.0

Compare Source

⚠ BREAKING CHANGES
  • update globby to 14.0.0
  • minimum supported Node.js version is 18.12.0 (#​759) (a5b7d06)
webpack-contrib/css-loader (css-loader)

v7.1.2

Compare Source

v7.1.1

Compare Source

v7.1.0

Compare Source

Features
  • added the getJSON option to output CSS modules mapping (#​1577) (af834b4)

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • The modules.namedExport option is true by default if you enable the esModule option

Migration guide:

Before:

import style from "./style.css";

console.log(style.myClass);

After:

import * as style from "./style.css";

console.log(style.myClass);
  • The modules.exportLocalsConvention has the value as-is when the modules.namedExport option is true and you don't specify a value
  • Minimum supported webpack version is 5.27.0
  • Minimum supported Node.js version is 18.12.0
Features
  • The modules.namedExports option works fine with any modules.exportLocalsConvention values (f96a110)
  • Added dashed variants for the modules.exportLocalsConvention options (40e1668)

v6.11.0

Compare Source

Features
Bug Fixes

v6.10.0

Compare Source

Features
  • add @rspack/core as an optional peer dependency (#​1568) (3924679)
  • pass the resourceQuery and resourceFragment to the auto and mode callback (#​1569) (d641c4d)
  • support named exports with any characters (6f43929)
6.9.1 (2024-01-18)
Bug Fixes
  • css nesting support
  • @scope at-rule support

v6.9.1

Compare Source

v6.9.0

Compare Source

Features
Bug Fixes
6.8.1 (2023-05-28)
Bug Fixes
webpack-contrib/html-loader (html-loader)

v5.1.0

Compare Source

Features

v5.0.0

Compare Source

⚠ BREAKING CHANGES
webpack-contrib/style-loader (style-loader)

v4.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported webpack version is 5.27.0
  • minimum support Node.js version is 18.12.0
  • the insert option can only be a selector or the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform: function (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

insert-function.js

function insert(css, style) {
  var parent = options.target || document.head;

  parent.appendChild(element);
}

module.exports = insert;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              insert: require.resolve("./insert.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
  • the styleTagTransform option can only be the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform: function (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

style-tag-transform-function.js

function styleTagTransform(css, style) {
  // Do something ...
  style.innerHTML = `${css}.modify{}\n`;

  document.head.appendChild(style);
}

module.exports = styleTagTransform;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              styleTagTransform: require.resolve("./style-tag-transform-function.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
Bug Fixes
3.3.3 (2023-05-19)
Bug Fixes
3.3.2 (2023-03-13)
Bug Fixes
3.3.1 (2021-10-21)
Bug Fixes

v3.3.4

Compare Source

3.3.4 (2024-01-09)
Bug Fixes
RoccoC/webpack-build-notifier (webpack-build-notifier)

v3.1.0

Compare Source

May 28, 2024
  • Fixed commonjs default export and added esm entrypoint.

v3.0.0

Compare Source

May 27, 2024
  • Added support for Webpack 5.
  • Bumped node-notifier to v10.0.1.
  • Fixes for #​81 and #​90)
  • Thanks, ImLunaHey! (PR)
webpack/webpack-dev-middleware (webpack-dev-middleware)

v7.4.2

Compare Source

v7.4.1

Compare Source

v7.4.0

Compare Source

Features
  • added the cacheImmutable option to cache immutable assets (assets with a hash in file name like image.e12ab567.jpg) (5ed629d)
  • allow to configure the Cache-Control header (#​1923) (f7529c3)
Bug Fixes
  • support devServer: false (b443f4d)

v7.3.0

Compare Source

Features
7.2.1 (2024-04-02)
Bug Fixes
  • avoid extra log

v7.2.1

Compare Source

v7.2.0

Compare Source

Features
7.1.1 (2024-03-21)
Bug Fixes

v7.1.1

Compare Source

v7.1.0

Compare Source

Features
  • prefer to use fs.createReadStream over fs.readFileSync to read files (ab533de)
Bug Fixes

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 18.12.0 (#​1694)
  • updated memfs@4 (#​1693)
Features
6.1.1 (2023-05-16)
Bug Fixes

v6.1.3

Compare Source

6.1.3 (2024-03-29)
Bug Fixes

v6.1.2

Compare Source

6.1.2 (2024-03-20)
Bug Fixes
webpack/webpack-dev-server (webpack-dev-server)

v5.0.4

Compare Source

v5.0.3

Compare Source

v5.0.2

Compare Source

v5.0.1

Compare Source

v5.0.0

Compare Source

Migration Guide and Changes.

4.15.1 (2023-06-09)
Bug Fixes

v4.15.2

Compare Source

4.15.2 (2024-03-20)
Bug Fixes
  • security: bump webpack-dev-middleware (4116209)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency webpack-dev-middleware to v7 Update webpack (major) Jan 10, 2024
@renovate renovate bot force-pushed the renovate/major-webpack branch 2 times, most recently from d2febc0 to 7090f18 Compare January 16, 2024 18:19
@renovate renovate bot force-pushed the renovate/major-webpack branch 2 times, most recently from efef886 to fe696b4 Compare April 8, 2024 18:37
@renovate renovate bot force-pushed the renovate/major-webpack branch from fe696b4 to c71fb52 Compare May 27, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants